﻿namespace OneWorks.Utils.Metadata.Entity
{
    /// <summary>
    /// 表关系
    /// </summary>
    public class TableKey
    {
        /// <summary>
        /// 主键表
        /// </summary>
        public Table PrimaryTable { get; set; }

        public string PrimaryTableName { get; set; }

        /// <summary>
        /// 主键字段
        /// </summary>
        public Column PrimaryColumn { get; set; }

        public string PrimaryColumnName { get; set; }

        /// <summary>
        /// 外键表
        /// </summary>
        public Table ForeignTable { get; set; }

        public string ForeignTableName { get; set; }

        /// <summary>
        /// 外键字段
        /// </summary>
        public Column ForeignColumn { get; set; }

        public string ForeignColumnName { get; set; }

    }
}
